package BC114_小乐乐排电梯;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int re = 0;
        while (n >= 12){
            re += 4;
            n -= 12;
        }
        System.out.println(re + 2);
    }
}
